<template>
	<view>
		<view class="" :style="`top:${heightTop}px`" style="position: fixed;left: 30rpx;" @click="getBack">
			<zywork-icon type="icon-zuojiantou" color="#000000" size="50"></zywork-icon>
		</view>
		<view class="" :style="`top:${heightTop}px`" style="position: fixed;right: 30rpx;">
			<zywork-icon type="icon-kefu" color="#000000" size="50"></zywork-icon>
		</view>
		<view class="container">
			<text  class="text-lg">找回密码</text>
			<view class="row input-phone" style="">
				<zywork-icon type="icon-shouji" size="40" color="#919191"></zywork-icon>
				<text class="text-base" style="margin-left: 15rpx;">+86</text>
				<input style="margin-left: 15rpx;" placeholder="请输入手机号" type="number" value=""  pattern="[0-9]*"/>
			</view>
			
			<view  class="row input-phone" style="">
				<zywork-icon type="icon-yuechi" size="40" color="#919191"></zywork-icon>
				<input style="margin-left: 15rpx;" placeholder="请输入验证码" type="number" value=""  pattern="[0-9]*"/>
				<text class="text-base font-color" style="margin-left: auto;">{{getCodeText}}</text>
			</view>
			<view  class="row input-phone" style="">
				<zywork-icon type="icon-psw-reset" size="40" color="#919191"></zywork-icon>
				<input style="margin-left: 15rpx;width: 70%;" password  placeholder="重置密码(8-20位数字和字母)"  value="" />
			</view>
			<view  class="row input-phone" style="">
				<zywork-icon type="icon-querenmima" size="40" color="#919191"></zywork-icon>
				<input style="margin-left: 15rpx;width: 70%;" password  placeholder="确认密码(8-20位数字和字母)"  value="" />
			</view>
			<view v-show="state" class="login-button text-base" style="font-weight: 800;margin-top: 100rpx;">
				完成
			</view>
			<view v-show="!state" class="login-button text-base" style="font-weight: 800;margin-top: 100rpx;">
				完成并登录
			</view>	
			<view v-show="!state" class="row" style="margin-top: 30rpx;">
				<text class="font-color1" style="margin-left: auto;">已有账号?</text>
				<text class="font-color" @click="login">立即登录~</text>
			</view>
			<view v-show="!state" class="row align-items-center" style="margin-top: 150rpx;">
				<text class="font-color1">登录注册代表同意</text>
				<text class="font-color">用户协议</text>
				<text class="font-color1">和</text>
				<text class="font-color">隐私协议</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				heightTop:10,
				getCodeText:"获取验证码",
				state:0
			};
		},
		created() {
			this.heightTop += uni.getSystemInfoSync().statusBarHeight
		},
		onLoad(data) {
			if(data.state){
				this.state = parseInt(data.state)
			}
		},
		methods:{
			getBack(){
				uni.navigateBack({})
			},
			login(){
				uni.navigateTo({
					url:"login"
				})
			}
		}
	}
</script>

<style lang="scss">
	
	.font-color{
		color: #6BA9D7;
	}
	
	.font-color1{
		color: #919191;
	}
	
	.container{
		padding: 30rpx 50rpx;
		margin-top: 200rpx;
		
		.input-phone{
			padding: 15rpx 0rpx;
			border-bottom: solid 1rpx #eeeeee;
			align-items: center;
			margin-top: 76rpx;
		}
		
		.login-button{
			flex: 1;
			background-color: #eee;
			color: #919191;
			height: 100rpx;
			text-align: center;
			line-height: 100rpx;
			border-radius: 50rpx;
			margin-top: 50rpx;
		}
		
	}
	
	.text-lg{
		font-size: 48rpx;
	}
	
	.text-base{
		font-size: 34rpx;
	}
	
	
	
</style>
